<html>
<head><meta charset="utf-8"><title>clap-discussions · wg-cli · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/220302-wg-cli/index.html">wg-cli</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/220302-wg-cli/topic/clap-discussions.html">clap-discussions</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="192559836"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/220302-wg-cli/topic/clap-discussions/near/192559836" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pksunkara <a href="https://rust-lang.github.io/zulip_archive/stream/220302-wg-cli/topic/clap-discussions.html#192559836">(Apr 01 2020 at 17:02)</a>:</h4>
<p>So, I finally got github to activate the discussions feature for our repo. <a href="https://github.com/clap-rs/clap/discussions" title="https://github.com/clap-rs/clap/discussions">https://github.com/clap-rs/clap/discussions</a></p>



<a name="192559971"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/220302-wg-cli/topic/clap-discussions/near/192559971" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pksunkara <a href="https://rust-lang.github.io/zulip_archive/stream/220302-wg-cli/topic/clap-discussions.html#192559971">(Apr 01 2020 at 17:03)</a>:</h4>
<p>I am moving some issues to discussion and it looks github is going to send email when thats being done. So, please be ready to get spam emailed :D</p>



<a name="196658513"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/220302-wg-cli/topic/clap-discussions/near/196658513" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pksunkara <a href="https://rust-lang.github.io/zulip_archive/stream/220302-wg-cli/topic/clap-discussions.html#196658513">(May 06 2020 at 16:15)</a>:</h4>
<p>clap-rs logo just got shown in github satellite keynote. <span aria-label="party ball" class="emoji emoji-1f38a" role="img" title="party ball">:party_ball:</span></p>



<a name="196659944"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/220302-wg-cli/topic/clap-discussions/near/196659944" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Degausser <a href="https://rust-lang.github.io/zulip_archive/stream/220302-wg-cli/topic/clap-discussions.html#196659944">(May 06 2020 at 16:24)</a>:</h4>
<p>That’s so awesome!!</p>



<a name="204253747"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/220302-wg-cli/topic/clap-discussions/near/204253747" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Leo Le Bouter <a href="https://rust-lang.github.io/zulip_archive/stream/220302-wg-cli/topic/clap-discussions.html#204253747">(Jul 17 2020 at 20:19)</a>:</h4>
<p>hey there! tried to contribute something! <a href="https://github.com/clap-rs/clap/pull/2020">https://github.com/clap-rs/clap/pull/2020</a></p>



<a name="204343307"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/220302-wg-cli/topic/clap-discussions/near/204343307" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pksunkara <a href="https://rust-lang.github.io/zulip_archive/stream/220302-wg-cli/topic/clap-discussions.html#204343307">(Jul 19 2020 at 10:40)</a>:</h4>
<p><span class="user-mention" data-user-id="214522">@Leo Le Bouter</span> Thanks. I reviewed it. Let's get it merged soon! <span aria-label="grinning" class="emoji emoji-1f600" role="img" title="grinning">:grinning:</span></p>



<a name="204539924"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/220302-wg-cli/topic/clap-discussions/near/204539924" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Leo Le Bouter <a href="https://rust-lang.github.io/zulip_archive/stream/220302-wg-cli/topic/clap-discussions.html#204539924">(Jul 21 2020 at 12:18)</a>:</h4>
<p><span class="user-mention" data-user-id="254853">@pksunkara</span> the issue with the Generator trait as it is, is that it can list "flags", "shorts" and "longs" but it can't link those back to the actual clap::Arg which means for some shells like fish, zsh or elvish, it can't use the clap::Arg methods to provide in-line help during completion (by including the clap::Arg description)</p>



<a name="204539951"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/220302-wg-cli/topic/clap-discussions/near/204539951" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Leo Le Bouter <a href="https://rust-lang.github.io/zulip_archive/stream/220302-wg-cli/topic/clap-discussions.html#204539951">(Jul 21 2020 at 12:19)</a>:</h4>
<p>for bash, it is fine because it doesnt support or do inline help, but for other shells it's an issue</p>



<a name="204540544"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/220302-wg-cli/topic/clap-discussions/near/204540544" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Leo Le Bouter <a href="https://rust-lang.github.io/zulip_archive/stream/220302-wg-cli/topic/clap-discussions.html#204540544">(Jul 21 2020 at 12:26)</a>:</h4>
<p>this is the reason no other impl of Generator other than the bash one uses the shorts_and_visible_aliases method</p>



<a name="204540650"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/220302-wg-cli/topic/clap-discussions/near/204540650" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Leo Le Bouter <a href="https://rust-lang.github.io/zulip_archive/stream/220302-wg-cli/topic/clap-discussions.html#204540650">(Jul 21 2020 at 12:28)</a>:</h4>
<p>I want to give clap-generate a rewrite entirely for much clearer code but I am a bit scared by the Generator impl for zsh, it looks so complicated</p>



<a name="204540844"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/220302-wg-cli/topic/clap-discussions/near/204540844" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Leo Le Bouter <a href="https://rust-lang.github.io/zulip_archive/stream/220302-wg-cli/topic/clap-discussions.html#204540844">(Jul 21 2020 at 12:30)</a>:</h4>
<p>it seems it just doesnt make sense to provide interfaces that list shorts, longs, or "flags" (whatever that means in this context, it actually is a clap::Arg but not sure why it's called "flag")</p>



<a name="204540861"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/220302-wg-cli/topic/clap-discussions/near/204540861" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Leo Le Bouter <a href="https://rust-lang.github.io/zulip_archive/stream/220302-wg-cli/topic/clap-discussions.html#204540861">(Jul 21 2020 at 12:30)</a>:</h4>
<p>you always need the actual Arg to provide useful completions</p>



<a name="204541066"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/220302-wg-cli/topic/clap-discussions/near/204541066" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Leo Le Bouter <a href="https://rust-lang.github.io/zulip_archive/stream/220302-wg-cli/topic/clap-discussions.html#204541066">(Jul 21 2020 at 12:32)</a>:</h4>
<p>the subcommand system makes it complex to provide completions it seems</p>



<a name="204542557"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/220302-wg-cli/topic/clap-discussions/near/204542557" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> pksunkara <a href="https://rust-lang.github.io/zulip_archive/stream/220302-wg-cli/topic/clap-discussions.html#204542557">(Jul 21 2020 at 12:48)</a>:</h4>
<p>Sounds good then. Thanks for looking into it.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>